package domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.Random;

public class Project  {

	private int id;
	private String name;
	private String desc;
	private Date startDate;
	private ArrayList<Activity> myActivityList;
	Random rndm;
	
	public Project() {
		super();
	}
		
	public Project(int id, String name, String desc, Date startDate, ArrayList<Activity> myActivityList) {
		super();
		this.id = id;
		this.name = name;
		this.desc = desc;
		this.startDate = startDate;
		this.myActivityList = myActivityList;
	}
	
/*	public Project create()
	{
	
	Project project= createProject();
		return project;
	}*/
	
	public Project create(int id, String name, String desc, Date startDate)
	{
		Project myProject = new Project();
		myProject.setId(rndm.nextInt());
		myProject.setName(name);
		myProject.setDesc(desc);
		myProject.setStartDate(startDate);
		return myProject;
		
	}
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	

	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDesc() {
		return desc;
	}
	
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public Date getStartDate() {
		return startDate;
	}
	
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	public void destroy()
	{
		
	}

	public ArrayList<Activity> getMyActivityList() {
		return myActivityList;
	}

	public void setMyActivityList(ArrayList<Activity> myActivityList) {
		this.myActivityList = myActivityList;
	}
	
}
